<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body th:inline="text">
    <span th:text="${msg}"></span><br/>

    <div>[[${msg}]]</div>

    <span th:text="${session.username}"></span><br/>

    <span th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></span><br/>

    <span th:text="|欢迎您${session.username}|"></span><br/>

    <span th:text="${user.name}"></span><br/>
    <span th:text="${user.age}"></span><br/>
    <span th:text="${user.sex}"></span><br/>

    <div th:object="${user}">
        <span th:text="*{name}"></span><br/>
        <span th:text="*{age}"></span><br/>
        <span th:text="*{sex}"></span><br/>
    </div>
</body>
</html>
<script th:inline="javascript">
    alert([[${msg}]])
</script>